import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//注册全局组件
import "@/components";
import "@/apis"

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.config.productionTip = false

//工具类
import u from "@/utils/utils";
Vue.prototype.$u = u;

//配置
import config from "@/config";
Vue.prototype.$code = config;

//订单状态
import orderStatus from "@/config/orderStatus";
Vue.prototype.$status = orderStatus;

//登录用户
import sessionTool from '@/utils/sessionTool';
Vue.prototype.$session = sessionTool;

//加载扫码枪驱动
import scanDevice from "@/utils/scanDevice";
Vue.use(scanDevice);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
